package com.chuangsi.project.admin.dto.app.order;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class ReqPlaceAnOrderDto {

    @ApiModelProperty(value = "支付方式（1：线上 2：线下）")
    @NotNull(message="支付方式不能为空")
    @Max(value = 2,message = "支付方式错误")
    @Min(value = 1,message = "支付方式错误")
    private Integer orderType;

    @ApiModelProperty(value = "微信openid")
    private String openId;

    @ApiModelProperty(value = "印章id")
    @Size(max = 32, message = "印章id长度过长")
    @NotBlank(message = "印章id不能为空")
    private String sealId;

    @ApiModelProperty(value = "销售金额")
    @NotNull(message = "销售金额不能为空")
    private BigDecimal money;

    @ApiModelProperty(value = "产品id")
    @NotBlank(message="产品id不能为空")
    @Size(max=32,message="产品id长度过长")
    private String productId;


}
